﻿#pragma once
#include <glad/glad.h>
#include <vector>

namespace Kriko
{
    class OpenGLIndexBuffer
    {
    private:
        GLuint bufferID;
        GLsizei count;
    public:
        OpenGLIndexBuffer(GLuint* data, GLsizei count);
        OpenGLIndexBuffer(const std::vector<int>& data);
        ~OpenGLIndexBuffer();
        void Bind();
        void Unbind();
        GLsizei GetCount() const;
    };
}
